/**
 * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see https://ckeditor.com/legal/ckeditor-oss-license
 */

CKEDITOR.editorConfig = function (config) {
  // Define changes to default configuration here. For example:
  //期初配置
  config.font_names = '宋体/宋体;黑体/黑体;仿宋/仿宋_GB2312;楷体/楷体_GB2312;隶书/隶书;幼圆/幼圆;微软雅黑/微软雅黑;' + config.font_names;
  config.height = "500";
  config.language = 'zh-cn';
  config.filebrowserUploadUrl = "";
  config.filebrowserImageUploadUrl = "";
  config.extraPlugins = "";
  config.uiColor = '#fbfdff';
  //工具栏
  config.toolbarGroups = [{
      name: 'document',
      groups: ['mode', 'document', 'doctools']
    },
    {
      name: 'clipboard',
      groups: ['clipboard', 'undo']
    },
    {
      name: 'editing',
      groups: ['find', 'selection', 'spellchecker', 'editing']
    },
    {
      name: 'tools',
      groups: ['tools']
    },
    {
      name: 'forms',
      groups: ['forms']
    },
    '/',
    {
      name: 'paragraph',
      groups: ['list', 'indent', 'blocks', 'align', 'bidi', 'paragraph']
    },
    {
      name: 'insert',
      groups: ['insert']
    },
    {
      name: 'links',
      groups: ['links']
    },
    '/',
    {
      name: 'styles',
      groups: ['styles']
    },
    {
      name: 'basicstyles',
      groups: ['basicstyles', 'cleanup']
    },
    {
      name: 'colors',
      groups: ['colors']
    },
    {
      name: 'others',
      groups: ['others']
    },
    {
      name: 'about',
      groups: ['about']
    }
  ];
  //移除按钮
  config.removeButtons = 'Language,Flash,Scayt,About,Iframe,Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,BidiLtr,BidiRtl,ShowBlocks';
  //移除easyimage、cloudservices、exportpdf插件
  config.removePlugins = 'easyimage,cloudservices,exportpdf';

};
